package com.wulijie.memento;

/**
 * @Author cui
 * @Data
 */
public class GameRole {
    private int v1;
    private int v2;

    public Memento saveRole() {
        return new Memento(this.v1, this.v2);
    }

    public void getLastR(Memento memento) {
        this.v1 = memento.getV1();
        this.v2 = memento.getV2();
    }

    public void display() {
        System.out.println("v1: "+ v1 + "v2: " + v2);
    }
    public GameRole(int v1, int v2) {
        this.v1 = v1;
        this.v2 = v2;
    }

    public int getV1() {
        return v1;
    }

    public void setV1(int v1) {
        this.v1 = v1;
    }

    public int getV2() {
        return v2;
    }

    public void setV2(int v2) {
        this.v2 = v2;
    }
}
